package com.code.day15DuoXianC.Dielock;

public class Test01 {
    public static void main(String[] args) {

        Mylock mylock1 = new Mylock(true);
        Mylock mylock2 = new Mylock(false);


        Thread thread = new Thread(mylock1);
        Thread thread1 = new Thread(mylock2);


        thread.start();
        thread1.start();
    }
}
